package com.laixu.bean;

import org.springframework.stereotype.Component;
import java.util.Date;
import lombok.Data;

@Component
@Data
public class User {
    private Integer id;
    private String username;
    private String password;
    private String phone;
    private String avatar;
    private String gender;
    private Integer status;
    private Date birthday;
    private Date registerTime;
    private Integer roleId;
    private Boolean isWip;  // bit(1) 对应Boolean
    private Date vipExpirationTime;
    private Integer defaultAddressId;

    // Getters and Setters
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }
    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }
    public String getAvatar() { return avatar; }
    public void setAvatar(String avatar) { this.avatar = avatar; }
    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
    public Date getBirthday() { return birthday; }
    public void setBirthday(Date birthday) { this.birthday = birthday; }
    public Date getRegisterTime() { return registerTime; }
    public void setRegisterTime(Date registerTime) { this.registerTime = registerTime; }
    public Integer getRoleId() { return roleId; }
    public void setRoleId(Integer roleId) { this.roleId = roleId; }
    public Boolean getIsWip() { return isWip; }
    public void setIsWip(Boolean isWip) { this.isWip = isWip; }
    public Date getVipExpirationTime() { return vipExpirationTime; }
    public void setVipExpirationTime(Date vipExpirationTime) { this.vipExpirationTime = vipExpirationTime; }
    public Integer getDefaultAddressId() { return defaultAddressId; }
    public void setDefaultAddressId(Integer defaultAddressId) { this.defaultAddressId = defaultAddressId; }
}